package com.von.init;

import com.von.service.IRoleResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class InitProject implements ApplicationRunner {

    @Autowired
    private IRoleResourceService iRoleResourceService;

    @Override
    public void run(ApplicationArguments args) {
        iRoleResourceService.init();
    }
}

